package com.distributedDataBase.service;

import com.distributedDataBase.mapper.DateDemoMapper;
import com.distributedDataBase.pojo.DateDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DateDemoServiceImpl implements DateDemoService {

    //service层调用mapper层
    @Autowired
    private DateDemoMapper dateDemoMapper;

    @Override
    public int register(DateDemo dateDemo) {
        //TODO... 处理业务-数据校验
        return dateDemoMapper.save(dateDemo);
    }
}
